package com.example.lib_base.net

/**
 * 常量池 ：路径  参数  返回值
 */
class Cons {
    companion object{
        const val BASE_URL = "http://10.161.9.80:7456/"//基础路径
        const val SENDCODE_URL = "/api/front/sendCode"//发送验证码
        const val LOGIN_URL = "/api/front/login/mobile"//手机号验证码登录
        const val USERINFO_URL = "/api/front/user"//用户信息
        const val UPDATEPWD_URL = "/api/front/register/reset"//修改密码
        const val LOGINPWD_URL = "/api/front/login"//密码登录
        const val INDEX_URL = "/api/front/index"//首页数据
        const val INDEX_GOODS_URL = "/api/front/index/product/{type}"//首页商品数据
        const val COUPON_URL = "/api/front/coupons"//优惠券列表
        const val COUPON_GET_URL ="/api/front/coupon/receive"//领取优惠券
        const val GOODS_URL = "/api/front/products"//商品列表  也可用作搜索使用

        const val DETAIL_URL = "/api/front/product/detail/{id}"//商品详情
        const val ADDCART_URL = "/api/front/cart/save"//新增购物车
        const val CART_URL = "/api/front/cart/list"//购物车列表
        const val CART_UPDATE_URL = "/api/front/cart/num"//修改购物车数量
        const val CART_DELETE_URL = "/api/front/cart/delete"//删除购物车
        const val CATEGORY_URL = "/api/front/category"//商品分类  一级二级数据请求一次即可
        const val COMMENT_URL = "/api/front/reply/list/{id}"//评论列表
        const val PREORDER_URL = "/api/front/order/pre/order"//预下单
        const val GETPREODER_URL = "/api/front/order/load/pre/{preOrderNo}"//加载预下单
        const val CREATE_ORDER_URL = "/api/front/order/create"//创建订单
        const val PAY_URL = "/api/front/pay/payment"//订单支付

        const val ORDER_URL = "/api/front/order/list"//订单列表
        const val UPLOAD_URL = "/api/front/user/upload/image"//图片上传

        const val COMMENT_SEND_URL = "/api/front/order/comment"//发评论

    }
}